import request from '@/utils/request';

export async function getInspectFileByPage (params: any) {
    return request('/api/device/getInspectFileByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addInspectFile (params: any) {
    return request('/api/device/addInspectFile', {
    method: 'POST',
    data: params,
  });
}

export async function updateInspectFile (params: any) {
    return request('/api/device/updateInspectFile', {
    method: 'POST',
    data: params,
  });
}

export async function delInspectFile (params: any) {
    return request('/api/device/delInspectFile', {
    method: 'POST',
    data: params,
  });
}


export async function exportInspectFile(params: any) {
    return request('/api/device/exportInspectFile', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getInspectFileByPage, addInspectFile, updateInspectFile, delInspectFile, exportInspectFile }
